package com.gxa.medical.entity.dto;
//dto:带条件的实体
import lombok.Data;

@Data
public class BaseQueryDto {
    //当前页数
    private Integer page=1;

    //分页大小
    private Integer limit=5;

    private Integer startIndex;
    //计算开始序号
    public Integer getStartIndex(){
        this.startIndex=(this.page-1)*this.limit;
        return startIndex;
    }
}
